package com.htjc.integral.exchange.utils.enums;

/**
 * 自定义请求状态码
 * @author zw
 */
public enum ResultStatus {
    SUCCESS(0, "成功"),
    OPENID_SRROR(1, "失败"),
    OPENID_EXISTSRROR(2, "openid存在"),
    MOILE_BINDSRROR(1, "用户不存在请联系管理员"),
    LOGIN_BINDSRROR(1, "用户未登录"),
    MOILE_NULLSRROR(2, "手机号为空"),
    CODE_NULLSRROR(3, "验证码为空"),
    CODE_ERROR(4, "验证码不匹配"),
    TIME_STATE(1,"发送过频繁稍后重试"),
    DUANXIN_ERROR(2,"发送失败"),
    PHONE_ERROR(3,"手机格式错误"),
    LOGIN_CODEERROR(1,"验证码错误"),
    LOGIN_CODEENULLRROR(2,"验证码null"),
    LOGIN_PHONENULLRROR(3,"手机号null"),
    USERNAME_OR_PASSWORD_ERROR(-1, "openid为空"),
    USER_NOT_FOUND(-1002, "用户不存在"),
    USER_NOT_LOGIN(-1003, "用户未登录"),
	USER_OPENIDNULL(-1, "数据不完整"),
	USER_OPENIDERROR(4003, "openid错误"),
	USER_JSONERROR(1002, "数据不完整"),
	USER_PAYOPENIDRROR(1003, "OPENID为空"),
	USER_MONEYRROR(1004, "金额为空"),
	USER_KEYRROR(1005, "商户号为空"),
	USER_PAYKEYRROR(1006, "支付秘钥为空"),
	SIGN_ERROR(1007, "接口返回错误"),
	OPENID_USER_ERROR(1008, "OPENID验证失败"),
	USER_NUMERROR(1001, "输入的金额不符");

    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
